<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DesignPattern: C:/96_project/DesignPattern/02_SimpleFactory/groupinc/DESIGNPATTERN_SimpleFactory.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="DesignPattern.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">DesignPattern
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_a02b9a1c74ba8e11ff4e8103e5ecba61.html">02_SimpleFactory</a></li><li class="navelem"><a class="el" href="dir_c52eb6add66b18e81306f2084a8fd3e6.html">groupinc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">DESIGNPATTERN_SimpleFactory.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef CXX_DESIGNPATTERN_SIMPLEFACTORY_H</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define CXX_DESIGNPATTERN_SIMPLEFACTORY_H</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_profession_8h.html">Profession.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">class </span><a class="code" href="class_profession.html">Profession</a>;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_simple_factory.html">   14</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_simple_factory.html">SimpleFactory</a></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <a class="code" href="class_simple_factory.html#a492f93e35730ece9a15b82e15dfcc743">~SimpleFactory</a>();</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_simple_factory.html">SimpleFactory</a>* <a class="code" href="class_simple_factory.html#ad4801d96dfc825d871c5637e6ed6e588">Instance</a>();</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">static</span> <a class="code" href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a> <a class="code" href="class_simple_factory.html#a354ec13a722ca4eda517894a1f02ba77">Destroy</a>();</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="class_profession.html">Profession</a>* <a class="code" href="class_simple_factory.html#ad694d842899090d143028bcba3fd5cca">CreateProfession</a>(<a class="code" href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68">PROFESSION_TYPE</a> eProfession);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="class_simple_factory.html#a24164cc1936a621a0790dac98eb53b03">SimpleFactory</a>();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <a class="code" href="class_simple_factory.html#a24164cc1936a621a0790dac98eb53b03">SimpleFactory</a>(<span class="keyword">const</span> <a class="code" href="class_simple_factory.html">SimpleFactory</a>&amp; cSimpleFactory);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="class_simple_factory.html">SimpleFactory</a>&amp; <a class="code" href="class_simple_factory.html#a9e21a5695206846b7baaecfe58d0c284">operator=</a>(<span class="keyword">const</span> <a class="code" href="class_simple_factory.html">SimpleFactory</a>&amp; cSimpleFactory);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_simple_factory.html#a3f283cb9b4f949bef290f7885e1c23a8">   80</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="class_simple_factory.html">SimpleFactory</a>* <a class="code" href="class_simple_factory.html#a3f283cb9b4f949bef290f7885e1c23a8">m_pInstance</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;};</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#endif  </span><span class="comment">/* &gt;&gt;CXX_DESIGNPATTERN_SIMPLEFACTORY_H&lt;&lt; */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor"></span><span class="comment">/* EOF */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="a_profession_8h_html"><div class="ttname"><a href="_profession_8h.html">Profession.h</a></div><div class="ttdoc">all kinds of Profession</div></div>
<div class="ttc" id="aclass_simple_factory_html_a24164cc1936a621a0790dac98eb53b03"><div class="ttname"><a href="class_simple_factory.html#a24164cc1936a621a0790dac98eb53b03">SimpleFactory::SimpleFactory</a></div><div class="ttdeci">SimpleFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8cpp_source.html#l00026">DESIGNPATTERN_SimpleFactory.cpp:26</a></div></div>
<div class="ttc" id="aclass_simple_factory_html"><div class="ttname"><a href="class_simple_factory.html">SimpleFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8h_source.html#l00014">DESIGNPATTERN_SimpleFactory.h:14</a></div></div>
<div class="ttc" id="a_my_self_def_8h_html_a7927e087749615dae3114cc27b91c86d"><div class="ttname"><a href="_my_self_def_8h.html#a7927e087749615dae3114cc27b91c86d">VOID</a></div><div class="ttdeci">void VOID</div><div class="ttdef"><b>Definition:</b> <a href="_my_self_def_8h_source.html#l00011">MySelfDef.h:11</a></div></div>
<div class="ttc" id="aclass_simple_factory_html_ad4801d96dfc825d871c5637e6ed6e588"><div class="ttname"><a href="class_simple_factory.html#ad4801d96dfc825d871c5637e6ed6e588">SimpleFactory::Instance</a></div><div class="ttdeci">static SimpleFactory * Instance()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8cpp_source.html#l00050">DESIGNPATTERN_SimpleFactory.cpp:50</a></div></div>
<div class="ttc" id="aclass_simple_factory_html_ad694d842899090d143028bcba3fd5cca"><div class="ttname"><a href="class_simple_factory.html#ad694d842899090d143028bcba3fd5cca">SimpleFactory::CreateProfession</a></div><div class="ttdeci">Profession * CreateProfession(PROFESSION_TYPE eProfession)</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8cpp_source.html#l00085">DESIGNPATTERN_SimpleFactory.cpp:85</a></div></div>
<div class="ttc" id="aclass_simple_factory_html_a3f283cb9b4f949bef290f7885e1c23a8"><div class="ttname"><a href="class_simple_factory.html#a3f283cb9b4f949bef290f7885e1c23a8">SimpleFactory::m_pInstance</a></div><div class="ttdeci">static SimpleFactory * m_pInstance</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8h_source.html#l00080">DESIGNPATTERN_SimpleFactory.h:80</a></div></div>
<div class="ttc" id="aclass_simple_factory_html_a9e21a5695206846b7baaecfe58d0c284"><div class="ttname"><a href="class_simple_factory.html#a9e21a5695206846b7baaecfe58d0c284">SimpleFactory::operator=</a></div><div class="ttdeci">SimpleFactory &amp; operator=(const SimpleFactory &amp;cSimpleFactory)</div></div>
<div class="ttc" id="aclass_simple_factory_html_a492f93e35730ece9a15b82e15dfcc743"><div class="ttname"><a href="class_simple_factory.html#a492f93e35730ece9a15b82e15dfcc743">SimpleFactory::~SimpleFactory</a></div><div class="ttdeci">~SimpleFactory()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8cpp_source.html#l00037">DESIGNPATTERN_SimpleFactory.cpp:37</a></div></div>
<div class="ttc" id="a_product_def_8h_html_af4f386858b1730df6c103acb62cebe68"><div class="ttname"><a href="_product_def_8h.html#af4f386858b1730df6c103acb62cebe68">PROFESSION_TYPE</a></div><div class="ttdeci">PROFESSION_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="_product_def_8h_source.html#l00011">ProductDef.h:11</a></div></div>
<div class="ttc" id="aclass_profession_html"><div class="ttname"><a href="class_profession.html">Profession</a></div><div class="ttdef"><b>Definition:</b> <a href="_profession_8h_source.html#l00012">Profession.h:12</a></div></div>
<div class="ttc" id="aclass_simple_factory_html_a354ec13a722ca4eda517894a1f02ba77"><div class="ttname"><a href="class_simple_factory.html#a354ec13a722ca4eda517894a1f02ba77">SimpleFactory::Destroy</a></div><div class="ttdeci">static VOID Destroy()</div><div class="ttdef"><b>Definition:</b> <a href="_d_e_s_i_g_n_p_a_t_t_e_r_n___simple_factory_8cpp_source.html#l00068">DESIGNPATTERN_SimpleFactory.cpp:68</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
